package com.ruoyi.system.mapper;

import com.ruoyi.system.pojo.entity.UserMessage;
import com.ruoyi.system.pojo.util.Pair;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AgoniMessageMapper {

    List<UserMessage> getMessageList(Long userId);

    List<UserMessage> selectMessagesByConversation(Pair conversationKey);

    void updateIsRead(@Param("messageIds")List<Long> messageIdsToMarkRead, @Param("isRead") boolean b);

    int insertMessage(UserMessage message);
}
